package com.kaibes.web.security.net;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestParam;

import com.kaibes.web.feign.FeignConfig;
import com.kaibes.web.response.BooleanResult;

@FeignClient(value = "${kaibes.web.security.check-url}", configuration = FeignConfig.class)
public interface AuthorityClient {
	
	@GetMapping("/authoritis/has/{roleId:\\d+}")
	BooleanResult has(@PathVariable Integer roleId, @RequestParam String authority);
}
